﻿@model IEnumerable<FreeDAM.Domain.Entities.Tag>

@{
    ViewBag.Title = "Tags";
}

<h2>Tags</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<div>
    <ul class="list-header">
        <li class="two-columns">
            @Html.DisplayNameFor(model => model.Name)
        </li>
        <li class="four-columns">
            @Html.DisplayNameFor(model => model.Description)
        </li>
    </ul>
@foreach (var item in Model) {
    <ul class="list-items">
        <li class="two-columns">
            @Html.DisplayFor(modelItem => item.Name)
        </li>
        <li class="four-columns">
            @Html.Raw(Html.DisplayFor(modelItem => item.Description))
        </li>
        <li class="four-columns">
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </li>
    </ul>
}

</div>
